<template>
  <div id="app">
    <!-- <div class="env_tag" v-if="ENV !== 'production'">{{ ENV }}</div> -->
    <router-view v-if="isRouterAlive" />
  </div>
</template>
<script setup lang="ts">
// const ENV = computed(() => {
//   return import.meta.env.VITE_APP_ENV;
// });
const isRouterAlive = ref(true);
const reload = () => {
  isRouterAlive.value = false;
  nextTick(() => {
    isRouterAlive.value = true;
  });
};
provide("reload", reload);
</script>
<style lang="scss">
body {
  overflow: hidden;
  background-color: #f6f6f6 !important;
}
#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-variant: tabular-nums;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  .env_tag {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 901;
    padding: 0 6px;
    font-size: 12px;
    color: #ffffff;
    background-color: red;
    border-radius: 0 0 0 4px;
  }
}
</style>
